//
//  ByHomeAdvertView.h
//  hutouben_ios
//
//  Created by mc on 2017/7/17.
//  Copyright © 2017年 mc. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "ByModelIndexHot.h"
@interface ByHomeAdvertView : UIView
/**
 *  @param duration 轮播时间间隔
 *  @param frame   轮播数量
 */
- (instancetype)initWithFrame:(CGRect)frame
                timerDuration:(CGFloat)duration;

@property (nonatomic, strong) NSArray *advertAry;        // 置顶帖子数组

// 点击了某个item
@property (nonatomic, copy) void (^itemDidTap)(NSInteger index);

@end
